<%--
  Created by IntelliJ IDEA.
  User: stigm
  Date: 2019/12/2
  Time: 15:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>联系人清单</title>
</head>
<body>
<form action="/contacts/search.html" method="post">
    姓名 <input type="text" name="name" value="${name}">
    <input type="submit" value="查询">
</form>
<table>
    <tr>
        <th>编号</th>
        <th>姓名</th>
    </tr>
    <c:forEach items="${contactsList}" var="contacts">
        <tr>
            <td>${contacts.id}</td>
            <td>${contacts.name}</td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
